<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../application/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>根组件</p>
        <hr>
        <comp-a>
            纯文本
            <template v-slot:aaa>
            <!-- <template v-slot="aaa"> -->
                <div>
                    梦云啊
                </div>
            </template>
        </comp-a>
        <hr>
        <comp-a>林夕的云
            <textarea name="" id="" cols="30" rows="10"></textarea>
            <p>梦</p>
        </comp-a>
    </div>
    <template id="child">
        <div>
            <p>子组件</p>
            <slot></slot>
            <h2>王梦云</h2>
            <slot name="aaa"></slot>
        </div>
    </template>
</body>
<script>
    new Vue({
        el:"#app",
        components:{
            compA:{
                template:"#child"
            }
        }
    })
</script>
</html>